#pragma once
#include <string>   // standard library: C++ style strings
#include <iostream> // include this standard library when using input/output
#include <sstream>  // requires standard library
#include <fstream>  // Note this extra header requirement whenever working with files
#include <cstdlib>
#include "../Utilities/utilities.h"

using namespace std;

typedef struct
{
	Vector3 position;
	Vector3 normal;
	Vector3 binormal;
	Vector3 tangent;
	Vector2 texcoord;
} Vertex;

class glModel
{
public:
	Vertex *m_aVertices;
	int m_iNumVertices;
	unsigned int *m_aIndices;
	int m_iNumIndices;
	int m_iNumFaces;
	char*path_model;	

	glModel(void);
	~glModel(void);
	char* seeknumberfloat(char*str);
	char* seeknumberint(char*str);
	int ScanInt(ifstream &infile);
	unsigned int ScanUnsignedInt(ifstream &infile);
	float ScanFloat(ifstream &infile);
	void LoadModel();
	void CleanUp();

private:
	char* str;
};

